package model

import "time"

type Merchant struct {
	Id                uint      `gorm:"id"`
	OpenAppId         string    `gorm:"open_app_id"`
	OpenMerchantId    string    `gorm:"open_merchant_id"`
	MerchantPid       string    `gorm:"merchant_pid"`
	Smid              string    `gorm:"smid"`
	MerchantLoginName string    `gorm:"merchant_login_name"`
	MerchantName      string    `gorm:"merchant_name"`
	Phone             string    `gorm:"phone"`
	Status            string    `gorm:"status"`
	ShopId            string    `gorm:"shop_id"`
	Appid             string    `gorm:"appid"`
	MerchantType      int       `gorm:"merchant_type;default:2"`
	LedgerRate        float32   `gorm:"ledger_rate;default:0.6"`
	SaleId            string    `gorm:"sale_id"`
	AppAuthToken      string    `gorm:"app_auth_token"`
	CreateTime        time.Time `gorm:"autoCreateTime"`
	UpdateTime        time.Time `gorm:"autoUpdateTime"`
	DeleteTime        time.Time `gorm:"delete_time"`
}
